package me.shiqiang.im.microservice.impl;

import com.tst.common.MessageReader;
import com.tst.common.returnobj.ReturnObjCode;
import me.shiqiang.im.microservice.UserQueryMicroService;
import me.shiqiang.im.microservice.returnobj.UserInfoReturnObj;
import me.shiqiang.im.microservice.returnobj.UserKeyReturnObj;
import me.shiqiang.im.microservice.returnobj.UsersInfoReturnObj;
import org.springframework.stereotype.Component;


@Component
public class UserQueryMicroServiceHyStrix implements UserQueryMicroService {

    @Override
    public UserInfoReturnObj findById(Long id) {
        return new UserInfoReturnObj(ReturnObjCode.SERVICE_FUSING, MessageReader.getMessage("msg.microService.userQuery.fusing"), null);
    }

    @Override
    public UsersInfoReturnObj getUserInfoByUserKeys(String userKeys) {
        return new UsersInfoReturnObj(ReturnObjCode.SERVICE_FUSING, MessageReader.getMessage("msg.microService.userQuery.fusing"), null);
    }

    @Override
    public UserKeyReturnObj getUserKeyById(Long uid) {
        return new UserKeyReturnObj(ReturnObjCode.SERVICE_FUSING, MessageReader.getMessage("msg.microService.userQuery.fusing"), null);
    }
}
